package cn.edu.sdjzu.xg.kcsj.domain;

import cn.edu.sdjzu.xg.kcsj.security.User;

import java.io.Serializable;

public class Faculty implements Comparable<Faculty>, Serializable {
    private Integer id;
    private String description;
    private String no;
    private int parent_id;
    private int isChild;

    public Faculty() {
    }

    public Faculty(Integer id, String description, String no, int parent_id, int isChild) {
        this.id = id;
        this.description = description;
        this.no = no;
        this.parent_id = parent_id;
        this.isChild = isChild;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public int getParent_id() {
        return parent_id;
    }

    public void setParent_id(int parent_id) {
        this.parent_id = parent_id;
    }

    public int getIsChild() {
        return isChild;
    }

    public void setIsChild(int isChild) {
        this.isChild = isChild;
    }

    @Override
    public String toString() {
        return "Faculty{" +
                "id=" + id +
                ", description='" + description + '\'' +
                ", no='" + no + '\'' +
                ", parent_id=" + parent_id +
                ", isChild=" + isChild +
                '}';
    }

    @Override
    public int compareTo(Faculty o) {
        return this.id - o.id;
    }
}
